use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct WebConfig {
    pub port: u32,
    pub https: bool,
    pub cert_file: String,
    pub key_file: String,
}
impl WebConfig {
    pub fn new() -> Self {
        Self::default()
    }
}

impl Default for WebConfig {
    fn default() -> Self {
        Self {
            port: 8000,
            https: false,
            cert_file: "".to_string(),
            key_file: "".to_string(),
        }
    }
}
